function HashTable(){
    this.hashArr = new Array();
    this.length = 0;
}

HashTable.prototype.get = function(key) {
    return this.hashArr[key];
};

HashTable.prototype.put = function(key, value) {
 if (typeof(this.hashArr[key]) == 'undefined') {
  this.length++;
 }
    this.hashArr[key] = value;
};

HashTable.prototype.remove = function(key) {
 if (typeof(this.hashArr[key]) != 'undefined') {
  this.length--;
  var value = this.hashArr[key];
  delete this.hashArr[key];
  return value;
 }
};

HashTable.prototype.has = function(key) {
 return (typeof(this.hashArr[key]) != 'undefined');
};

/*
var phoneLookup = new HashTable();
phoneLookup.put('Jane', '111-222-3333');
phoneLookup.put('John', '444-555-6666');
alert(phoneLookup.get('Jane'));




*/